#include"list.h"



int main()
{

	zhz::list<int> lt1;
	lt1.push_back(1);
	lt1.push_back(2);
	lt1.push_back(3);
	lt1.push_back(4);
	lt1.push_back(5);

	cout << lt1.front() << " " << lt1.back() << endl;

	lt1.push_front(2);
	lt1.push_front(3);
	lt1.push_front(4);
	lt1.push_front(5);
	lt1.push_front(6);
	lt1.pop_front();
	lt1.pop_back();
	//lt1.clear();
	lt1.push_back(1);

	zhz::list<int> lt2;
	lt2 = lt1;

	zhz::list<int> lt3(10,9);

	zhz::swap(lt1, lt3);
	for (auto x : lt1)
	{
		cout << x << " ";
	}


	cout << endl;
	for (auto x : lt3)
	{
		cout << x << " ";
	}


}